package com.qf.shoppinguser.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("user")
public class User {
    //必须配置,否则mp无法识别到id是自增的,会报错
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private String phone;
    private String password;
    private String nickname;
    private String address;
}
